import { buyerListApi } from "@/api/user.js";
import { responseCallback } from "@/utils";
import { ref } from "vue";
export const useBuyerList = function () {
  const buyerListRef = ref([]);
  responseCallback({
    promise: buyerListApi(),
  }).then((data) => {
    console.log("data", data);
    if (data) {
      buyerListRef.value = data;
    }
  });
  return {
    buyerList: buyerListRef,
  };
};
